<html>
    <body>
    	<h1>Operations on this page is very dangerous, please make sure you want to do it!!!!</h1>
    	<h1>Upload csv files to database</h1>
        <form enctype="multipart/form-data" action="/upload" method="post">
            <label>
                File:
            </label>
            <input type="file" name="file" />
            <br/>
            
            <input type="hidden" type="text" name="file_type" value="csv" />
			<input type="hidden" type="text" name="action" value="upload-raw-table" />
            <br/>
            <label>
                Action:
            </label>
            <select name="table">
            	{% for op in options %}
                <option value="{{ op }}">{{ op }}</option>
				{% endfor %}
            </select>
			<br/>
			<input type="radio" name="empty" value="yes"> Delete Existing Records<br>
			<input type="radio" name="empty" value="no" checked> Keep Existing Records<br>

            <br/>
            <input type="submit" value="Upload"/>
        </form>
		<h1>Upload a new Table Schema: Be very careful!</h1>
		<form enctype="multipart/form-data" action="/upload" method="post">
			<input type="hidden" type="text" name="action" value="update_dlz_table_schema" />
			<input type="file" name="file" />
			<input type="submit" value="update-table-schema"/>
		</form>
		<h1>Update Project Information for Test Tables</h1>
		<form enctype="multipart/form-data" action="/upload" method="post">
			<input type="hidden" type="text" name="action" value="update_compaction_test_project_info" />
			<input type="file" name="file" />
			<input type="submit" value="update-compaction-test-project-info"/>
		</form>
		<form enctype="multipart/form-data" action="/upload" method="post">
			<input type="hidden" type="text" name="action" value="update_asphalt_test_project_info" />
			<input type="file" name="file" />
			<input type="submit" value="update_asphalt_test_project_info"/>
		</form>
		 
    </body>
</html>